FROM 192.168.75.129:5001/k8s/jdk21:latest

ENV MAVEN_HOME="/opt/maven"
ENV PATH=$PATH:$MAVEN_HOME/bin

# 下载maven 文件到Dockerfile 同目录下
ADD apache-maven-3.9.6-bin.tar.gz /opt/
RUN mv /opt/apache-maven-3.9.6 $MAVEN_HOME

CMD ["mvn","-version"]